package com.lpx.blog.dto;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Author: ColorSheep
 * @Description: TODO
 * @Date: 2024/11/21 06:58
 * @Version: 1.0
 */
@Data
public class UserRegistryDTO implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

	@Email
	private String registerEmail;

	@NotEmpty
	@Size(min = 6, max = 20, message = "用户名长度在6-20位之间")
	private String registerNickName;
	@NotEmpty
	@Size(min=8, max=20, message="密码长度在8-20位之间")
	private String registerPwd;
	@NotEmpty
	@Size(min=6, max=6, message="验证码长度应为6位")
	private String registerCode;
}
